# -*- mode: snippet -*-
# name: operator*
# key: *
# --
${1:ReturnClass}& ${2:MyClass}::operator*() ${3:const} {// const or not
    $0
    return *ptr->sp;  //return ref
}